﻿@model KL.Store.Web.Models.RemindPasswordModel
@using KL.Store.Core
@{
    ViewBag.Title = "Şifre Hatırlatma";
    ViewBag.hasSub = "true";
    Layout = "~/Views/Shared/" + Parameters.Layout + ".cshtml";

    var columnClass = "col-xs-12 col-sm-12 col-md-3 col-lg-2 left first last";
    var pageClass = "col-xs-12 col-sm-12 col-md-9 col-lg-10 right";
    if (Parameters.Theme == "EO" || Parameters.Theme == "DK")
    {
        columnClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left first last";
        pageClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
    }
    else
    {
        columnClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left";
        pageClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
    }
    var BackLink = "/Account/Login";
    if (Request.IsAuthenticated)
    {
        BackLink = "/Account/Index";
    }
}
@if (Parameters.Theme != "HA")
{
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 first last">
        <div class="breadcrumb col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <div class="bcBorder"></div>
            <div class="bcLinks">
                <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                    <a href="/" itemprop="url">
                        <span itemprop="title">Anasayfa</span>
                    </a>›
                </div>
                <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                    <a href="/Account/Index" itemprop="url">
                        <span itemprop="title">Hesabım</span>
                    </a>›
                </div>
                <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                    <a href="/Account/RemindPassword" itemprop="url">
                        <span itemprop="title">@ViewBag.Title</span>
                    </a>
                </div>
            </div>
            <div class="bcBorder"></div>
        </div>
        <div class="clearfix"></div>
    </div>
}
<div class="@(columnClass)">
    @{ Html.RenderAction("Account", "Partials"); }
    @{ Html.RenderAction("Information", "Partials"); }
</div>
<div class="@(pageClass)">
    <div class="content">
        <h1>@ViewBag.Title</h1>
        <div class="hidden-xs hidden-sm col-md-3 col-lg-3"></div>
        <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 remindPassword account-block">
            <div class="account-block-outer">
                <div class="account-block-inner">
                    @using (Html.BeginForm(null, null, null, FormMethod.Post, new { name = "password", id = "password", @class = "form-horizontal" }))
                    { 
                        <div class="form-group">
                            <label for="UserName" class="col-sm-4 control-label">E-Posta Adresi:</label>
                            <div class="col-sm-8">
                                @Html.TextBoxFor(m => m.UserName, new { @type = "email", @class = "form-control", @placeHolder = "E-Posta Adresinizi Giriniz" })
                                @Html.ValidationMessageFor(model => model.UserName)
                                @Html.DisplayTextFor(model => model.Message)
                            </div>
                        </div>
                        if (!ViewData.ModelState.IsValid)
                        {
                        <div class="bg-danger bs-bgb">
                            @Html.ValidationSummary(true, "E-posta adresinizi giriniz.")
                        </div>
                        <br />
                        }
                        <div class="form-group">
                            <div class="col-sm-4"></div>
                            <div class="col-xs-8">
                                <a href="@(BackLink)" class="btn btn-custom1">Geri</a>
                                <a onclick="$('#password').submit();" class="btn btn-custom1">Gönder</a>
                            </div>
                        </div>
                    }
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</div>
@if (Parameters.WebSiteTrackingCode != "")
{ 
    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '@Parameters.WebSiteTrackingCode']);
        _gaq.push(['_setDomainName', '@Parameters.WebSiteTrackingDomainName']);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);

        (function ()
        {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
}